From the context menu of the layer the display cache can be manually refreshed. This may be necessary for:
- Reflect changes that have occurred in the code (for example, if it has been edited)
- Regenerate a cache that somehow got corrupted
- In rasterized vector layers that are loaded from a project file, to generate the visualization cache with the legend stored in the project rather than with the legend cached (which may have changed since the project was saved)
- Force a visual refresh of the layer that does not happen automatically.